import React from 'react'

import Com from '../component'

const Left = () => {

    const dataList = [1, 2, 3, 4];
    return (
        <div style={{ padding: "0 10px" }}>
            <div style={{ display: "flex", justifyContent: "space-between", marginBottom: "6px" }}>
                <b>拼团专区</b>
                <a href="">查看更多</a>
            </div>

            <ul style={{ margin: 0, padding: 0, display: "flex", flexWrap: "wrap" }}>
                {
                    dataList.map((item) => {
                        return (
                            <li key={item} style={{ width: "50%",textAlign:"center" }}>
                                <img src="http://uniapp.b2b2c.niuteam.cn/public/static/ext/diyview/img/crack_figure.png" alt="" style={{ width: "100px", height: "100px" }} />
                                <div>￥990.00</div>
                                <del style={{ color: "#898989", fontSize: "12px" }}>￥1200.00</del>
                            </li>
                        )
                    })
                }

            </ul>
            {/* <div>

                <div style={{ display: "flex" }}>
                    <img src="http://uniapp.b2b2c.niuteam.cn/public/static/ext/diyview/img/crack_figure.png" alt="" style={{ width: "80px", height: "80px" }} />
                    <div style={{ display: "flex", flexDirection: "column", marginLeft: "8px" }}>
                        <div style={{ fontWeight: 600 }}>商品名称</div>
                        <del style={{ color: "#898989", fontSize: "12px" }}>原价:￥1200.00</del>
                        <span style={{ color: "#4685FD" }}>团购价:￥998.00</span>
                    </div>
                </div>
            </div> */}
        </div>
    );
}

export default (props: any) => {
    return (
        <Com {...props} left={<Left />} right={null} />
    )
}